#sleipner_all

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := sleipner_all

SDL_PATH := $(LOCAL_PATH)/../extern/SDL2



# Add any compilation flags for your project here...
LOCAL_CFLAGS := \
	-fexceptions \
	-frtti \
	-Wno-deprecated

LOCAL_CPP_EXTENSION := .cpp

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../src \
$(LOCAL_PATH)/../extern_android/freetype/include \
$(LOCAL_PATH)/../extern \
$(LOCAL_PATH)/../extern/SDL2/include \
$(LOCAL_PATH)/../extern_android



LOCAL_STATIC_LIBRARIES := gnustl_static SDL2 jpeg png freetype
LOCAL_SHARED_LIBRARIES := prebuild_bass  

LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,, \
    $(wildcard $(LOCAL_PATH)/gamecenter/*.cpp) \
    $(wildcard $(LOCAL_PATH)/audio/*.cpp) \
    $(wildcard $(LOCAL_PATH)/background/*.cpp) \
    $(wildcard $(LOCAL_PATH)/bones/*.cpp) \
    $(wildcard $(LOCAL_PATH)/camera/*.cpp) \
    $(wildcard $(LOCAL_PATH)/console/*.cpp) \
    $(wildcard $(LOCAL_PATH)/dd/*.cpp) \
    $(wildcard $(LOCAL_PATH)/editor/*.cpp) \
    $(wildcard $(LOCAL_PATH)/fbcplus/*.cpp) \
    $(wildcard $(LOCAL_PATH)/font/*.cpp) \
    $(wildcard $(LOCAL_PATH)/oglgraphics/*.cpp) \
    $(wildcard $(LOCAL_PATH)/gameflow/*.cpp) \
    $(wildcard $(LOCAL_PATH)/graphics/*.cpp) \
    $(wildcard $(LOCAL_PATH)/inapppurchase/*.cpp) \
    $(wildcard $(LOCAL_PATH)/lang/*.cpp) \
    $(wildcard $(LOCAL_PATH)/math/*.cpp) \
    $(wildcard $(LOCAL_PATH)/num/*.cpp) \
    $(wildcard $(LOCAL_PATH)/input/*.cpp) \
    $(wildcard $(LOCAL_PATH)/part2d/*.cpp) \
    $(wildcard $(LOCAL_PATH)/resman/*.cpp) \
    $(wildcard $(LOCAL_PATH)/script/*.cpp) \
    $(wildcard $(LOCAL_PATH)/ui/*.cpp) \
    $(wildcard $(LOCAL_PATH)/admanager/*.cpp) \
    $(wildcard $(LOCAL_PATH)/application/*.cpp) \
	$(wildcard $(LOCAL_PATH)/util/*.cpp) \
    $(wildcard $(LOCAL_PATH)/vfs/*.cpp) \
    $(wildcard $(LOCAL_PATH)/vfx/*.cpp) \
    $(wildcard $(LOCAL_PATH)/luaplus/*.cpp) \
    $(wildcard $(LOCAL_PATH)/luaplus/*.c) \
    $(wildcard $(LOCAL_PATH)/luaplus/src/*.cpp) \
    $(wildcard $(LOCAL_PATH)/luaplus/src/*.c) \
    $(wildcard $(LOCAL_PATH)/src/vfx/*.cpp) \
    $(wildcard $(LOCAL_PATH)/nextpeer/*.cpp))
    
#LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -lz


include $(BUILD_STATIC_LIBRARY)
